package com.auto.autoapp.util

import android.content.Context
import android.util.Log
import android.widget.Toast
import com.auto.autoapp.AutoApplication
import com.auto.autoapp.services.FloatingWindowService

fun addLog(msg: String) {
    FloatingWindowService.addLog(msg)
    Log.e("TAG", "addLog: $msg")

}

fun toast(msg: String,context: Context? = null) {
    Toast.makeText(context?: AutoApplication.instance, msg, Toast.LENGTH_SHORT).show()
}